<?php
/**
 * @abstract Define constants
 * @author HoanVX
 * @version $Id: consts.php 91 2015-05-14 13:16:33Z voxuanhoan@gmail.com $
 */
/**  Lay đường dãn tương đối theo domain tới template folder Ex: chochois.com//wp-content/theme/... */
if (!defined("TEMPLATE_DIRECTORY_URI")) {
	define("TEMPLATE_DIRECTORY_URI", get_template_directory_uri());
}

/** Duong dan toi thu muc chua hinh cho cac tin dang (main directory)
	DIR_UPLOAD_IMG = D://xampp/htdocs/chotrois/uploads/post-image/ */
if (!defined("DIR_UPLOAD_IMG")) {
	define("DIR_UPLOAD_IMG", ABSPATH .'uploads/post-images/');
}


/** ROOT_URI = http://chotrois.com/ */
if (!defined("ROOT_URI")) {
	$uri = explode("wp-content", TEMPLATE_DIRECTORY_URI);
	define("ROOT_URI", $uri[0]);
}
/**
 * user for output log
 */
if (!defined("LOG_CHOTROI")) {
	define("LOG_CHOTROI", "[chotrois]");
}


/** Register Post */
define("CT_CITY", "ct_city");
define("CT_DISTRICT", "ct_district");
define("CT_POST_PURPOSE", "ct_postPurpose");
define("CT_POST_END_DATE", "ct_postEndDate");
define("CT_PRICE", "ct_price");
define("CT_NOTE", "ct_note");

/** Register - Update profile*/
define("CT_ADDRESS", "ct_address");
define("CT_PHONE", "ct_phone");
define("CT_FACEBOOK", "ct_facebook");
define("CT_SKYPE", "ct_skype");
define("CT_COMPANY", "ct_company");

